package xty.user.dao;

import org.springframework.data.mongodb.core.aggregation.Aggregation;
import org.springframework.data.mongodb.core.query.Query;
import xty.user.entity.User;

import java.util.List;

/**
 * Created by XieTianYi on 2019/12/18.
 */
public interface IMongoUserDao {
    void save(User user);

    void update(User user);

    List<User> find(Query query);

    List find(Aggregation aggregation);

    void delete(String id);
}
